import { createApp } from "vue";
import { setupStore, useAuthStore } from "@/stores";
import "./app.scss";
import { useRouterPush } from "./composables";

const App = createApp({
    onShow(options) {},
    // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
});

function setupApp() {
    setupStore(App);
}
setupApp();

const auth = useAuthStore()

if (auth.isLogin()) {
    useRouterPush().toHome()
}
export default App;
